<?php

/*
 * class for Manage all users
 * @author Chamara Bandara
 * @copyright Copyright &copy; 2011 Allion Technologies (Pvt) Ltd
 */

class AdminAction extends CAction{
    
    public function run(){
        $controller = $this->getController();
        $model=new User('search');
		$model->unsetAttributes();  // clear any default values
		if(isset($_GET['User']))
			$model->attributes=$_GET['User'];

		$controller->render('admin',array(
			'model'=>$model,
		));
    }
}
